# Contributor: Adam Thiede <me@adamthiede.com>
# Maintainer: Adam Thiede <me@adamthiede.com>
pkgname=chicago95
_pkgbase=3.0.1
_pkgdate=20240619
pkgver=${_pkgbase}_git$_pkgdate
_commit="bdf5cf36a16102aaac297f3de887c601c2b1146f"
pkgrel=0
pkgdesc="Windows 95 gtk theme, icons, and fonts"
url="https://github.com/grassmunk/chicago95"
arch="noarch"
license="GPL-3.0-or-later"
depends="$pkgname-icons"
subpackages="$pkgname-icons $pkgname-fonts"
source="$pkgname-$pkgver.tar.gz::https://github.com/grassmunk/Chicago95/archive/$_commit.tar.gz"
options="!check" # no tests, just a theme
builddir="$srcdir/Chicago95-$_commit"

package() {
	mkdir -p "$pkgdir"/usr/share/themes/
	cp -a Theme/Chicago95 "$pkgdir"/usr/share/themes/

	mkdir -p "$pkgdir"/usr/share/icons/
	cp -a Icons/Chicago95 Icons/Chicago95-tux "$pkgdir"/usr/share/icons/
	cp -a Cursors/* "$pkgdir"/usr/share/icons/

	mkdir -p "$pkgdir"/usr/share/fonts/Chicago95/
	cp -a Fonts/bitmap Fonts/vga_font "$pkgdir"/usr/share/fonts/Chicago95/
}

icons() {
	amove /usr/share/icons
}

fonts() {
	amove /usr/share/fonts/Chicago95
}

sha512sums="
f48221ac2b64b66fd08def6f217abd497bcbe76483a9dee54cfedc09f63216033b9207235371f012068b3074b8573265ee19ec95cb06c8c39b5055342fea643e  chicago95-3.0.1_git20240619.tar.gz
"
